package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单详情对象 sys_orders
 * 
 * @author ruoyi
 * @date 2024-10-12
 */
public class SysOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单号 */
    private Long sysOrdersId;

    /** 下单的用户编号 */
    @Excel(name = "下单的用户编号")
    private Long userId;

    /** 桌号 */
    @Excel(name = "桌号")
    private String tableId;

    /** 订单中的菜品 */
    @Excel(name = "订单中的菜品")
    private String dishesCode;

    /** 订单中的套餐 */
    @Excel(name = "订单中的套餐")
    private String comboCode;

    /** 订单的总金额 */
    @Excel(name = "订单的总金额")
    private Long ordersPrice;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date searchDate;

    /** 订单的付款状态（1未付款0已付款） */
    @Excel(name = "订单的付款状态", readConverterExp = "1=未付款0已付款")
    private String ordersPriceStatus;

    /** 订单的下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单的下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime ordersCreatTime;

    /** 订单修改时间（出餐时间） */
    @Excel(name = "订单出餐时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime ordersUpdateTime;

    /** 订单的出餐状况（1未出餐0已出餐） */
    @Excel(name = "订单的出餐状况", readConverterExp = "1=未出餐0已出餐")
    private String ordersStatus;

    public void setSysOrdersId(Long sysOrdersId) 
    {
        this.sysOrdersId = sysOrdersId;
    }

    public Long getSysOrdersId() 
    {
        return sysOrdersId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTableId(String tableId) 
    {
        this.tableId = tableId;
    }

    public String getTableId() 
    {
        return tableId;
    }

    public void setOrdersPrice(Long ordersPrice) 
    {
        this.ordersPrice = ordersPrice;
    }

    public Long getOrdersPrice() 
    {
        return ordersPrice;
    }
    public void setOrdersPriceStatus(String ordersPriceStatus) 
    {
        this.ordersPriceStatus = ordersPriceStatus;
    }

    public String getOrdersPriceStatus() 
    {
        return ordersPriceStatus;
    }
    public void setOrdersCreatTime(LocalDateTime ordersCreatTime)
    {
        this.ordersCreatTime = ordersCreatTime;
    }

    public LocalDateTime getOrdersCreatTime()
    {
        return ordersCreatTime;
    }
    public void setOrdersUpdateTime(LocalDateTime ordersUpdateTime)
    {
        this.ordersUpdateTime = ordersUpdateTime;
    }

    public LocalDateTime getOrdersUpdateTime()
    {
        return ordersUpdateTime;
    }
    public void setOrdersStatus(String ordersStatus) 
    {
        this.ordersStatus = ordersStatus;
    }

    public String getOrdersStatus() 
    {
        return ordersStatus;
    }

    public String getDishesCode() {
        return dishesCode;
    }

    public void setDishesCode(String dishesCode) {
        this.dishesCode = dishesCode;
    }

    public String getComboCode() {
        return comboCode;
    }

    public void setComboCode(String comboCode) {
        this.comboCode = comboCode;
    }

    public Date getSearchDate() {
        return searchDate;
    }

    public void setSearchDate(Date searchDate) {
        this.searchDate = searchDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sysOrdersId", getSysOrdersId())
            .append("userId", getUserId())
            .append("tableId", getTableId())
            .append("dishesCode", getDishesCode())
            .append("comboCode", getComboCode())
            .append("ordersPrice", getOrdersPrice())
            .append("ordersPriceStatus", getOrdersPriceStatus())
            .append("ordersCreatTime", getOrdersCreatTime())
            .append("ordersUpdateTime", getOrdersUpdateTime())
            .append("ordersStatus", getOrdersStatus())
                .append("searchDate",getSearchDate())
            .toString();
    }
}
